package com.zed.code.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * ChargeSession
 * @author 
 */
public class Chargesession implements Serializable {
    private Integer id;

    private String sessionid;

    private String nickname;

    private String openid;

    private Integer stationid;

    private String stationname;

    private String deviceid;

    private Byte port;

    private BigDecimal voltage;

    private BigDecimal current;

    private BigDecimal amountcharged;

    private BigDecimal timecharged;

    private BigDecimal amount;

    private BigDecimal percent;

    private Integer batterytype;

    private BigDecimal allpower;

    private BigDecimal capacity;

    private BigDecimal maxallowvoltage;

    private BigDecimal maxallowcurrent;

    private BigDecimal singlemaxallowvoltage;

    private BigDecimal singlehighvoltage;

    private BigDecimal singlelowvoltage;

    private BigDecimal singlehightemp;

    private BigDecimal singlelowtemp;

    private String bmsversion;

    private Date startpaydate;

    private Date finishedpaydate;

    private Integer paystatus;

    private Date viewdatetime;

    private Integer chargestatus;

    private Integer sessiontype;

    private String cardno;

    private Date createdate;

    private Date dataupdatedate;

    private Integer chargemode;

    private BigDecimal modevalue;

    private Date userstarttime;

    private Boolean islocked;

    private BigDecimal servicefee;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSessionid() {
        return sessionid;
    }

    public void setSessionid(String sessionid) {
        this.sessionid = sessionid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Integer getStationid() {
        return stationid;
    }

    public void setStationid(Integer stationid) {
        this.stationid = stationid;
    }

    public String getStationname() {
        return stationname;
    }

    public void setStationname(String stationname) {
        this.stationname = stationname;
    }

    public String getDeviceid() {
        return deviceid;
    }

    public void setDeviceid(String deviceid) {
        this.deviceid = deviceid;
    }

    public Byte getPort() {
        return port;
    }

    public void setPort(Byte port) {
        this.port = port;
    }

    public BigDecimal getVoltage() {
        return voltage;
    }

    public void setVoltage(BigDecimal voltage) {
        this.voltage = voltage;
    }

    public BigDecimal getCurrent() {
        return current;
    }

    public void setCurrent(BigDecimal current) {
        this.current = current;
    }

    public BigDecimal getAmountcharged() {
        return amountcharged;
    }

    public void setAmountcharged(BigDecimal amountcharged) {
        this.amountcharged = amountcharged;
    }

    public BigDecimal getTimecharged() {
        return timecharged;
    }

    public void setTimecharged(BigDecimal timecharged) {
        this.timecharged = timecharged;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getPercent() {
        return percent;
    }

    public void setPercent(BigDecimal percent) {
        this.percent = percent;
    }

    public Integer getBatterytype() {
        return batterytype;
    }

    public void setBatterytype(Integer batterytype) {
        this.batterytype = batterytype;
    }

    public BigDecimal getAllpower() {
        return allpower;
    }

    public void setAllpower(BigDecimal allpower) {
        this.allpower = allpower;
    }

    public BigDecimal getCapacity() {
        return capacity;
    }

    public void setCapacity(BigDecimal capacity) {
        this.capacity = capacity;
    }

    public BigDecimal getMaxallowvoltage() {
        return maxallowvoltage;
    }

    public void setMaxallowvoltage(BigDecimal maxallowvoltage) {
        this.maxallowvoltage = maxallowvoltage;
    }

    public BigDecimal getMaxallowcurrent() {
        return maxallowcurrent;
    }

    public void setMaxallowcurrent(BigDecimal maxallowcurrent) {
        this.maxallowcurrent = maxallowcurrent;
    }

    public BigDecimal getSinglemaxallowvoltage() {
        return singlemaxallowvoltage;
    }

    public void setSinglemaxallowvoltage(BigDecimal singlemaxallowvoltage) {
        this.singlemaxallowvoltage = singlemaxallowvoltage;
    }

    public BigDecimal getSinglehighvoltage() {
        return singlehighvoltage;
    }

    public void setSinglehighvoltage(BigDecimal singlehighvoltage) {
        this.singlehighvoltage = singlehighvoltage;
    }

    public BigDecimal getSinglelowvoltage() {
        return singlelowvoltage;
    }

    public void setSinglelowvoltage(BigDecimal singlelowvoltage) {
        this.singlelowvoltage = singlelowvoltage;
    }

    public BigDecimal getSinglehightemp() {
        return singlehightemp;
    }

    public void setSinglehightemp(BigDecimal singlehightemp) {
        this.singlehightemp = singlehightemp;
    }

    public BigDecimal getSinglelowtemp() {
        return singlelowtemp;
    }

    public void setSinglelowtemp(BigDecimal singlelowtemp) {
        this.singlelowtemp = singlelowtemp;
    }

    public String getBmsversion() {
        return bmsversion;
    }

    public void setBmsversion(String bmsversion) {
        this.bmsversion = bmsversion;
    }

    public Date getStartpaydate() {
        return startpaydate;
    }

    public void setStartpaydate(Date startpaydate) {
        this.startpaydate = startpaydate;
    }

    public Date getFinishedpaydate() {
        return finishedpaydate;
    }

    public void setFinishedpaydate(Date finishedpaydate) {
        this.finishedpaydate = finishedpaydate;
    }

    public Integer getPaystatus() {
        return paystatus;
    }

    public void setPaystatus(Integer paystatus) {
        this.paystatus = paystatus;
    }

    public Date getViewdatetime() {
        return viewdatetime;
    }

    public void setViewdatetime(Date viewdatetime) {
        this.viewdatetime = viewdatetime;
    }

    public Integer getChargestatus() {
        return chargestatus;
    }

    public void setChargestatus(Integer chargestatus) {
        this.chargestatus = chargestatus;
    }

    public Integer getSessiontype() {
        return sessiontype;
    }

    public void setSessiontype(Integer sessiontype) {
        this.sessiontype = sessiontype;
    }

    public String getCardno() {
        return cardno;
    }

    public void setCardno(String cardno) {
        this.cardno = cardno;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public Date getDataupdatedate() {
        return dataupdatedate;
    }

    public void setDataupdatedate(Date dataupdatedate) {
        this.dataupdatedate = dataupdatedate;
    }

    public Integer getChargemode() {
        return chargemode;
    }

    public void setChargemode(Integer chargemode) {
        this.chargemode = chargemode;
    }

    public BigDecimal getModevalue() {
        return modevalue;
    }

    public void setModevalue(BigDecimal modevalue) {
        this.modevalue = modevalue;
    }

    public Date getUserstarttime() {
        return userstarttime;
    }

    public void setUserstarttime(Date userstarttime) {
        this.userstarttime = userstarttime;
    }

    public Boolean getIslocked() {
        return islocked;
    }

    public void setIslocked(Boolean islocked) {
        this.islocked = islocked;
    }

    public BigDecimal getServicefee() {
        return servicefee;
    }

    public void setServicefee(BigDecimal servicefee) {
        this.servicefee = servicefee;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Chargesession other = (Chargesession) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSessionid() == null ? other.getSessionid() == null : this.getSessionid().equals(other.getSessionid()))
            && (this.getNickname() == null ? other.getNickname() == null : this.getNickname().equals(other.getNickname()))
            && (this.getOpenid() == null ? other.getOpenid() == null : this.getOpenid().equals(other.getOpenid()))
            && (this.getStationid() == null ? other.getStationid() == null : this.getStationid().equals(other.getStationid()))
            && (this.getStationname() == null ? other.getStationname() == null : this.getStationname().equals(other.getStationname()))
            && (this.getDeviceid() == null ? other.getDeviceid() == null : this.getDeviceid().equals(other.getDeviceid()))
            && (this.getPort() == null ? other.getPort() == null : this.getPort().equals(other.getPort()))
            && (this.getVoltage() == null ? other.getVoltage() == null : this.getVoltage().equals(other.getVoltage()))
            && (this.getCurrent() == null ? other.getCurrent() == null : this.getCurrent().equals(other.getCurrent()))
            && (this.getAmountcharged() == null ? other.getAmountcharged() == null : this.getAmountcharged().equals(other.getAmountcharged()))
            && (this.getTimecharged() == null ? other.getTimecharged() == null : this.getTimecharged().equals(other.getTimecharged()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getPercent() == null ? other.getPercent() == null : this.getPercent().equals(other.getPercent()))
            && (this.getBatterytype() == null ? other.getBatterytype() == null : this.getBatterytype().equals(other.getBatterytype()))
            && (this.getAllpower() == null ? other.getAllpower() == null : this.getAllpower().equals(other.getAllpower()))
            && (this.getCapacity() == null ? other.getCapacity() == null : this.getCapacity().equals(other.getCapacity()))
            && (this.getMaxallowvoltage() == null ? other.getMaxallowvoltage() == null : this.getMaxallowvoltage().equals(other.getMaxallowvoltage()))
            && (this.getMaxallowcurrent() == null ? other.getMaxallowcurrent() == null : this.getMaxallowcurrent().equals(other.getMaxallowcurrent()))
            && (this.getSinglemaxallowvoltage() == null ? other.getSinglemaxallowvoltage() == null : this.getSinglemaxallowvoltage().equals(other.getSinglemaxallowvoltage()))
            && (this.getSinglehighvoltage() == null ? other.getSinglehighvoltage() == null : this.getSinglehighvoltage().equals(other.getSinglehighvoltage()))
            && (this.getSinglelowvoltage() == null ? other.getSinglelowvoltage() == null : this.getSinglelowvoltage().equals(other.getSinglelowvoltage()))
            && (this.getSinglehightemp() == null ? other.getSinglehightemp() == null : this.getSinglehightemp().equals(other.getSinglehightemp()))
            && (this.getSinglelowtemp() == null ? other.getSinglelowtemp() == null : this.getSinglelowtemp().equals(other.getSinglelowtemp()))
            && (this.getBmsversion() == null ? other.getBmsversion() == null : this.getBmsversion().equals(other.getBmsversion()))
            && (this.getStartpaydate() == null ? other.getStartpaydate() == null : this.getStartpaydate().equals(other.getStartpaydate()))
            && (this.getFinishedpaydate() == null ? other.getFinishedpaydate() == null : this.getFinishedpaydate().equals(other.getFinishedpaydate()))
            && (this.getPaystatus() == null ? other.getPaystatus() == null : this.getPaystatus().equals(other.getPaystatus()))
            && (this.getViewdatetime() == null ? other.getViewdatetime() == null : this.getViewdatetime().equals(other.getViewdatetime()))
            && (this.getChargestatus() == null ? other.getChargestatus() == null : this.getChargestatus().equals(other.getChargestatus()))
            && (this.getSessiontype() == null ? other.getSessiontype() == null : this.getSessiontype().equals(other.getSessiontype()))
            && (this.getCardno() == null ? other.getCardno() == null : this.getCardno().equals(other.getCardno()))
            && (this.getCreatedate() == null ? other.getCreatedate() == null : this.getCreatedate().equals(other.getCreatedate()))
            && (this.getDataupdatedate() == null ? other.getDataupdatedate() == null : this.getDataupdatedate().equals(other.getDataupdatedate()))
            && (this.getChargemode() == null ? other.getChargemode() == null : this.getChargemode().equals(other.getChargemode()))
            && (this.getModevalue() == null ? other.getModevalue() == null : this.getModevalue().equals(other.getModevalue()))
            && (this.getUserstarttime() == null ? other.getUserstarttime() == null : this.getUserstarttime().equals(other.getUserstarttime()))
            && (this.getIslocked() == null ? other.getIslocked() == null : this.getIslocked().equals(other.getIslocked()))
            && (this.getServicefee() == null ? other.getServicefee() == null : this.getServicefee().equals(other.getServicefee()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSessionid() == null) ? 0 : getSessionid().hashCode());
        result = prime * result + ((getNickname() == null) ? 0 : getNickname().hashCode());
        result = prime * result + ((getOpenid() == null) ? 0 : getOpenid().hashCode());
        result = prime * result + ((getStationid() == null) ? 0 : getStationid().hashCode());
        result = prime * result + ((getStationname() == null) ? 0 : getStationname().hashCode());
        result = prime * result + ((getDeviceid() == null) ? 0 : getDeviceid().hashCode());
        result = prime * result + ((getPort() == null) ? 0 : getPort().hashCode());
        result = prime * result + ((getVoltage() == null) ? 0 : getVoltage().hashCode());
        result = prime * result + ((getCurrent() == null) ? 0 : getCurrent().hashCode());
        result = prime * result + ((getAmountcharged() == null) ? 0 : getAmountcharged().hashCode());
        result = prime * result + ((getTimecharged() == null) ? 0 : getTimecharged().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getPercent() == null) ? 0 : getPercent().hashCode());
        result = prime * result + ((getBatterytype() == null) ? 0 : getBatterytype().hashCode());
        result = prime * result + ((getAllpower() == null) ? 0 : getAllpower().hashCode());
        result = prime * result + ((getCapacity() == null) ? 0 : getCapacity().hashCode());
        result = prime * result + ((getMaxallowvoltage() == null) ? 0 : getMaxallowvoltage().hashCode());
        result = prime * result + ((getMaxallowcurrent() == null) ? 0 : getMaxallowcurrent().hashCode());
        result = prime * result + ((getSinglemaxallowvoltage() == null) ? 0 : getSinglemaxallowvoltage().hashCode());
        result = prime * result + ((getSinglehighvoltage() == null) ? 0 : getSinglehighvoltage().hashCode());
        result = prime * result + ((getSinglelowvoltage() == null) ? 0 : getSinglelowvoltage().hashCode());
        result = prime * result + ((getSinglehightemp() == null) ? 0 : getSinglehightemp().hashCode());
        result = prime * result + ((getSinglelowtemp() == null) ? 0 : getSinglelowtemp().hashCode());
        result = prime * result + ((getBmsversion() == null) ? 0 : getBmsversion().hashCode());
        result = prime * result + ((getStartpaydate() == null) ? 0 : getStartpaydate().hashCode());
        result = prime * result + ((getFinishedpaydate() == null) ? 0 : getFinishedpaydate().hashCode());
        result = prime * result + ((getPaystatus() == null) ? 0 : getPaystatus().hashCode());
        result = prime * result + ((getViewdatetime() == null) ? 0 : getViewdatetime().hashCode());
        result = prime * result + ((getChargestatus() == null) ? 0 : getChargestatus().hashCode());
        result = prime * result + ((getSessiontype() == null) ? 0 : getSessiontype().hashCode());
        result = prime * result + ((getCardno() == null) ? 0 : getCardno().hashCode());
        result = prime * result + ((getCreatedate() == null) ? 0 : getCreatedate().hashCode());
        result = prime * result + ((getDataupdatedate() == null) ? 0 : getDataupdatedate().hashCode());
        result = prime * result + ((getChargemode() == null) ? 0 : getChargemode().hashCode());
        result = prime * result + ((getModevalue() == null) ? 0 : getModevalue().hashCode());
        result = prime * result + ((getUserstarttime() == null) ? 0 : getUserstarttime().hashCode());
        result = prime * result + ((getIslocked() == null) ? 0 : getIslocked().hashCode());
        result = prime * result + ((getServicefee() == null) ? 0 : getServicefee().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", sessionid=").append(sessionid);
        sb.append(", nickname=").append(nickname);
        sb.append(", openid=").append(openid);
        sb.append(", stationid=").append(stationid);
        sb.append(", stationname=").append(stationname);
        sb.append(", deviceid=").append(deviceid);
        sb.append(", port=").append(port);
        sb.append(", voltage=").append(voltage);
        sb.append(", current=").append(current);
        sb.append(", amountcharged=").append(amountcharged);
        sb.append(", timecharged=").append(timecharged);
        sb.append(", amount=").append(amount);
        sb.append(", percent=").append(percent);
        sb.append(", batterytype=").append(batterytype);
        sb.append(", allpower=").append(allpower);
        sb.append(", capacity=").append(capacity);
        sb.append(", maxallowvoltage=").append(maxallowvoltage);
        sb.append(", maxallowcurrent=").append(maxallowcurrent);
        sb.append(", singlemaxallowvoltage=").append(singlemaxallowvoltage);
        sb.append(", singlehighvoltage=").append(singlehighvoltage);
        sb.append(", singlelowvoltage=").append(singlelowvoltage);
        sb.append(", singlehightemp=").append(singlehightemp);
        sb.append(", singlelowtemp=").append(singlelowtemp);
        sb.append(", bmsversion=").append(bmsversion);
        sb.append(", startpaydate=").append(startpaydate);
        sb.append(", finishedpaydate=").append(finishedpaydate);
        sb.append(", paystatus=").append(paystatus);
        sb.append(", viewdatetime=").append(viewdatetime);
        sb.append(", chargestatus=").append(chargestatus);
        sb.append(", sessiontype=").append(sessiontype);
        sb.append(", cardno=").append(cardno);
        sb.append(", createdate=").append(createdate);
        sb.append(", dataupdatedate=").append(dataupdatedate);
        sb.append(", chargemode=").append(chargemode);
        sb.append(", modevalue=").append(modevalue);
        sb.append(", userstarttime=").append(userstarttime);
        sb.append(", islocked=").append(islocked);
        sb.append(", servicefee=").append(servicefee);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}